package com.feynman.pattern.factory;

/**
 * @ClassName FactoryTest
 * @Description 工厂测试
 * @Author Feynman
 * @date 2019/3/26 14:35
 * @Version V1.0
 **/
public class FactoryTest {
    public static void main(String[] args) {
        Phone ihpone =  new Iphone();
        ihpone.call();

        Phone huawei =  new Huawei();
        huawei.call();

        Phone xiaomi =  new Xiaomi();
        xiaomi.call();
    }
}
